//
//  IKEcgCheckController.m
//  Ikinloop-demo
//
//  Created by Li Shen on 2021/4/25.
//  Copyright © 2021 lyh. All rights reserved.
//

#import "IKEcgCheckController.h"
#import "EcgCheckOrBindController.h"

@implementation IKEcgCheckController
static IKEcgCheckController *check;

+ (instancetype)getInstance{
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
         check = [[IKEcgCheckController alloc] init];
    });
    return check;
}

- (instancetype)init{
    self = [super init];
    if(self){
        
    }
    return self;
}

- (void)showEcgView:(id<IKEcgCheckInterface>)checkInterface controller:(UIViewController*)controller userData:(NSString*)userdata{
    EcgCheckOrBindController *checkVc = [[EcgCheckOrBindController alloc] initWithDelegate:checkInterface customData:userdata];
    if(controller.navigationController != nil){
        [controller.navigationController pushViewController:checkVc animated:YES];
    }
}

@end
